<%-- 
    Document   : content
    Created on : Mar 7, 2012, 11:43:26 AM
    Author     : Tri ben tre
--%>

<%@page import="COMMON.CauHoi"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<div id="content">
<%
    ArrayList<CauHoi> dsch = (ArrayList<CauHoi>)request.getAttribute("dsch");
    for(int i=1; i <= dsch.size(); i++)
    {
        CauHoi ch = dsch.get(i-1);
%>
        
        	<div class="post_box">
        
                <div class="post_meta"><%= i %>.<%= ch.getQuestion() %> </div>
		<div><input type="radio" name="<%= i %>" id="answerA<%= i %>" value="Blue" /><label for="answerA<%= i %>" class="opt"><%= ch.getAnswer_1() %></label></div>
                <div><input type="radio" name="<%= i %>" id="answerB<%= i %>" value="Red" /><label for="answerB<%= i %>" class="opt"><%= ch.getAnswer_2() %></div>
                <div><input type="radio" name="<%= i %>" id="answerC<%= i %>" value="Green" /><label for="answerC<%= i %>" class="opt"><%= ch.getAnswer_3() %></label></div>
		<div><input type="radio" name="<%= i %>" id="answerD<%= i %>" value="Green" /><label for="answerD<%= i %>" class="opt"><%= ch.getAnswer_4() %> from</label></div>
                <div class="cleaner"></div>
            </div>
<%
     }
%>
        </div>
